<?php

function bibliotype_title() {
	echo get_bibliotype_title();
}
function get_bibliotype_title() {
	$bib = get_option('bibliotype_options');	
	return $bib['bibliotype_title'];	
}
function bibliotype_author() {
	echo get_bibliotype_author();	
}
function get_bibliotype_author() {
	$bib = get_option('bibliotype_options');	
	return $bib['bibliotype_author'];		
}
function bibliotype_alert() {
	echo get_bibliotype_alert();	
}
function get_bibliotype_alert() {
	$bib = get_option('bibliotype_options');	
	return $bib['bibliotype_alert'];		
}
function bibliotype_page_title() {
	global $post;
	$title = get_bibliotype_title();
	$author = get_bibliotype_author();
	$page = get_the_title();
	if ($title && $author){
		if(!is_front_page()) { 
			echo $title . ' by ' . $author . ' : ' . $page;
		} else {
			echo $title . ' by ' . $author;
		}
	} else {
		wp_title();
	}
}
function get_bibliotype_debug_enabled() {
	$bib = get_option('bibliotype_options');	
	return $bib['bibliotype_debug_enabled'];	
}



?>